#include<iostream>
#include<vector>
using namespace std;

void test_vector_reserve()
{
	vector<int> v(20, 1);
	v.reserve(21);
	cout << "v.reserve(21)" << endl;
	cout << "size:" << v.size() << " capacity:"<<v.capacity() << endl;

	v.reserve(15);
	cout << "v.reserve(15)" << endl;
	cout << "size:" << v.size() << " capacity:" << v.capacity() << endl;

	v.reserve(20);
	cout << "v.reserve(20)" << endl;
	cout << "size:" << v.size() << " capacity:" << v.capacity() << endl;

	v.reserve(100);
	cout << "v.reserve(100)" << endl;
	cout << "size:" << v.size() << " capacity:" << v.capacity() << endl;
}

int main()
{
	test_vector_reserve();
	return 0;
}
